#include <stdio.h>
#include <string.h>

int	main(void) {
	FILE *f;
	char	line[80];
	char	matchstr[]="   Humidity:";
	char	c1[80], c2[80], c3[80];

	f=fopen("w.txt","r");
	while(fgets(line, sizeof(line), f)!=NULL) {
		if (strncmp(matchstr, line, strlen(matchstr))==0) {
			printf("MATCH: '%s'\n", line);
			sscanf(line, "%s %s %s", c1, c2, c3);
			printf("humid = '%s'\n", c2);
		} else {
//			printf("NOT MATCH: '%s'\n", line);
		}
	}
	fclose(f);
	return 0;
}
